package request

// PageInfo Paging common input parameter structure
type PageInfo struct {
	Page     int    `json:"page" form:"page"`              // 页码
	PageSize int    `json:"pageSize" form:"pageSize"`      // 每页大小
	Keyword  string `json:"keyword" form:"keyword"`        //关键字
	StartAt  string `json:"startCreatedAt" form:"startAt"` //
	EndAt    string `json:"endCreatedAt" form:"EndAt"`     //
	UserName string `json:"authorityName"`
	DescBool int    `json:"descBool"` //
}

// GetById Find by id structure
type GetById struct {
	ID int `json:"id" form:"id"` // 主键ID
}

func (r *GetById) Uint() uint {
	return uint(r.ID)
}

type IdsReq struct {
	Ids []int `json:"ids" form:"ids"`
}
type GetDataSearch struct {
	OutinSize       int64 `json:"OutinSize" form:"OutinSize"`
	OutinPage       int64 `json:"OutinPage" form:"OutinPage"`
	StaffStatusPage int64 `json:"StaffStatusPage" form:"StaffStatusPage"`
	StaffStatusSize int64 `json:"StaffStatusSize" form:"StaffStatusSize"`
	AlarmListPage   int64 `json:"AlarmListPage" form:"AlarmListPage"`
	AlarmListSize   int64 `json:"AlarmListSize" form:"AlarmListSize"`
	BadPage         int64 `json:"BadPage" form:"BadPage"`
	BadSize         int64 `json:"BadSize" form:"BadSize"`
	UsePage         int64 `json:"UsePage" form:"UsePage"`
	UseSize         int64 `json:"UseSize" form:"UseSize"`
	RestPage        int64 `json:"RestPage" form:"RestPage"`
	RestSize        int64 `json:"RestSize" form:"RestSize"`
}

// GetAuthorityId Get role by id structure
type GetAuthorityId struct {
	AuthorityId uint `json:"authorityId" form:"authorityId"` // 角色ID
}

type Empty struct{}
